
import request from '@/utils/request';
import { Result } from './definitions/Result';
import { VehicleBrand } from './definitions/VehicleBrand';
import { ResultListVehicleBrand } from './definitions/ResultListVehicleBrand';
import { ResultVehicleBrand } from './definitions/ResultVehicleBrand';


export class VehicleBrandApiController {

    static insertUsingPOSTPath: string = "/v1/shop/vehicleBrand";
    /// insert
    async insertUsingPOST(data: VehicleBrand, headers?: any):  Promise<any> {
      return request(`/v1/shop/vehicleBrand`, {
        method: "POST",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static updateUsingPUTPath: string = "/v1/shop/vehicleBrand";
    /// update
    async updateUsingPUT(data: VehicleBrand, headers?: any):  Promise<any> {
      return request(`/v1/shop/vehicleBrand`, {
        method: "PUT",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static pageUsingGETPath: string = "/v1/shop/vehicleBrand/list";

    async pageUsingGET( headers?: any) : Promise<ResultListVehicleBrand> {
      return request(`/v1/shop/vehicleBrand/list`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static getUsingGETPath: string = "/v1/shop/vehicleBrand/{id}";

    async getUsingGET(id: string,  headers?: any) : Promise<ResultVehicleBrand> {
      return request(`/v1/shop/vehicleBrand/${id}`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static deleteUsingDELETEPath: string = "/v1/shop/vehicleBrand/{id}";

    async deleteUsingDELETE(id: string,  headers?: any) : Promise<any> {
      return request(`/v1/shop/vehicleBrand/${id}`, {
        method: "DELETE",
        headers: headers,
      }) as Promise<any>;
    }
    
}